﻿using System;
using System.Data;

using DAL;
using Model;

namespace BLL
{
    public  class PositionBLL
    {
        public PositionBLL()
		{ 
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetPositionAll(string strWhere)
        {
            return PositionDAL.GetList(strWhere);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(int position_id)
        {
            PositionDAL.Delete(position_id);
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(Position  model)
        {
            return PositionDAL.Add(model);
        }      

        public string GetPositionNmById(int positionId)
        {
            return PositionDAL.GetPositionNmById(positionId);
        }

        public DataSet GetExportDSIncAllDim(int positionId, int dimID)
        {
            return PositionDAL.GetExportDSIncAllDim(positionId, dimID);
        }
    }
}
